home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_eval8.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  513 b   |  39 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_EVAL8
  5.  
  6. creation {ANY}
  7.    make
  8.    
  9. feature {ANY}
  10.    
  11.    make is
  12.       local
  13.      i: INTEGER;
  14.       do
  15.      i := 2;
  16.      i := foo;
  17.      check 
  18.         i = 5
  19.      end;
  20.       end;
  21.    
  22.    foo: INTEGER is
  23.       local
  24.      a: STRING;
  25.       do
  26.      a := "in foo";
  27.      Result := bar;
  28.       end;
  29.  
  30.    bar: INTEGER is
  31.       local
  32.      s: STRING;
  33.       do
  34.      s := "in bar";
  35.      Result := 5;
  36.       end;
  37.  
  38. end -- TEST_EVAL8
  39.